import request from '@/utils/request'

//查询分类列表
export function listCat(query) {
  return request({
    url: '/cf/cat/list',
    method: 'get',
    params: query
  })
}
  // 新增分类
  export function addCat(data) {
    return request({
      url: '/cf/cat/add',
      method: 'post',
      data: data
    })
  }
  // 批量删除分类
  export function deleteCat(data) {
    return request({
      url: '/cf/cat/delete',
      method: 'post',
      data: data
    })
  }
  // 修改分类
  export function updateCat(data) {
    return request({
      url: '/cf/cat/update',
      method: 'post',
      data: data
    })
  }


